home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / coding / 80x86 / code32.lzh / KB32.INC < prev    next >
Text File  |  1993-01-09  |  689b  |  30 lines

  1. ; Special KB codez:           KB bits:
  2. ;  1-12 - F1-F12 - 1-0ch       0 - shift
  3. ;  13   - Enter  - 0dh         1 - alt
  4. ;  14   - Esc    - 0eh         2 - ctrl
  5. ;  15   - Tab    - 0fh
  6. ;  16   - BS     - 10h
  7. ;  17   - Ins    - 11h
  8. ;  18   - Del    - 12h
  9. ;  19   - Home   - 13h
  10. ;  20   - End    - 14h
  11. ;  21   - PgUp   - 15h
  12. ;  22   - PgDn   - 16h
  13. ;  23   - Left   - 17h
  14. ;  24   - Right  - 18h
  15. ;  25   - Up     - 19h
  16. ;  26   - Down   - 1ah
  17.  
  18. extrn   _kbhand:dword, _ksstat:byte
  19.  
  20. extrn   _init_kb:near, _reset_kb:near, _getch:near, _reset_hand:near
  21.  
  22. ; Chek if key hit
  23. ; Out:
  24. ;   CF=1 - key hit
  25. ;   CF=0 - key not hit
  26. @kbhit  macro
  27.         bt word ptr _ksstat,3
  28. endm
  29.  
  30.